package fr.lille.inria.adam.lifl.EcoGardeInventory.scrapper;

import android.os.Parcel;
import android.os.Parcelable;

public class User implements Parcelable {
	public String login = "";
	public String password = "";
	
	@Override
	public int describeContents() { return 0; }
	
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(login);
		dest.writeString(password);
	}
	
	public static final Parcelable.Creator<User> CREATOR = new Creator<User>() {
		
		@Override
		public User[] newArray(int size) { return new User[size]; }
		
		@Override
		public User createFromParcel(Parcel source) {
			User result = new User();
			result.login = source.readString();
			result.password = source.readString();
			return result;
		}
	};
}
